package personnal.blogprinter.generator;

import java.io.File;

import personnal.blogprinter.data.PostInfo;
import personnal.blogprinter.exceptions.GenerationException;

public interface Generator {

	public static final String HTML_DOCTYPE = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitionnal.dtd\">";

	public abstract void init(File outputFile) throws GenerationException;

	/**
	 * @see personnal.blogprinter.generator.Generator#addPost(personnal.blogprinter.data.PostInfo)
	 */
	public abstract void addPost(PostInfo postInfo)
			throws GenerationException;

	/**
	 * @see personnal.blogprinter.generator.Generator#close()
	 */
	public abstract void destroy();

}